<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String xmldate=(String)request.getAttribute("xmldate");
String tabledata=(String)request.getAttribute("tabledata");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>数据展示页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
 	<script type="text/javascript" src="<%=request.getContextPath() %>/FusionCharts/FusionCharts.js"> </script>
    <script language="JavaScript" src="<%=request.getContextPath() %>/FusionCharts/FusionChartsExportComponent.js"></script>
	<script language="javascript">
	function exportxls()
	{
		var	obj=window.confirm("是否要导出到Xls文件?");
		if(obj==true)
		{
			document.getElementById("export_xls").submit();
			}
	}
    </script>
  </head>
  
  <body>
   			<div class="xzzbox">
				<div class="xztitle"><img src="images/search_18.jpg" alt="" />
			  </div>
				<!--<div class="qbiao" style="width:910px;overflow:scroll;"> -->
				<div class="qbiao">
					<%=tabledata%>
				</div>


				<div class="dcbg">
					<!--<img src="images/compare_31.jpg" alt="" /> -->
					<input class="comparexzdc" name="search" onClick="exportxls()" value="数据导出到xls" type="button" id="search" />
			      <form name="export_xls" id="export_xls" method="post" action="<%=request.getContextPath() %>/export_xls.do?method=export_xls">
                  <input type="hidden" value="<%=tabledata%>" name="table_data" id="table_data">
                  </form>
				</div>

			</div>
            
            			<div class="xzzbox">
				<div class="xztitle">
					<img src="images/tu.jpg" alt="" />
				</div>
				<div class="ttt">
					
				</div>
 <div id="fcexpDiv" align="center">
   </div>  
    <div id="chartContainer">FusionCharts will load here!</div>          
    <script type="text/javascript">         
     var myChart = new FusionCharts( "<%=request.getContextPath() %>/FusionCharts/MSLine.swf", 
      "myChartId", "100%", "100%", "0", "1" );
      myChart.setXMLData("<%=xmldate%>");
      myChart.render("chartContainer");
    </script>  
    
    <div id="fcexpDiv" align="center"></div>
<script type="text/javascript">
var myExportComponent = new FusionChartsExportObject("fcExporter1", "<%=request.getContextPath() %>/FusionCharts/FCExporter.swf");
myExportComponent.Render("fcexpDiv");
</script>
       

				<div class="dcbg">&nbsp; 
					<!--<img src="images/compare_34.jpg" alt="" /> -->
				</div>
				<div class="duibi">
					<span class="osfv"><a href="compare.jsp"><br></a> </span>
				</div>

			</div>
            
            
  </body>
</html>
